package com.fengmi.mapper;

import com.fengmi.entity.OmsOrder;
import com.fengmi.entity.OmsOrderOperateHistory;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author 123
 * @Date 2022/2/10 11:20
 * @Version 1.0
 */

/**
 * 订单表 mapper
 */
public interface OmsOrderMapper {
    // 条件查询所有订单信息
    List<OmsOrder> findOrdersByWhere(OmsOrder omsOrder);

    //根据订单id查询订单操作流程明细状态
    @Select("SELECT * FROM oms_order_operate_history WHERE order_id = #{orderId} ORDER BY create_time")
    public List<OmsOrderOperateHistory> findOperationHistoryByOrderId(String orderId);

}

